<?php
/**
 * Created by PhpStorm.
 * User: qishengqiang
 * Date: 2022-08-03
 * Time: 14:59
 */

namespace app\models;


class ActivityEnlists extends ModelBase
{
    protected $pk = 'signId';

    public function activity()
    {
        return $this->hasOne(Activities::class, 'activityId', 'activityId');
    }

    public function user()
    {
        return $this->hasOne(Users::class, 'userId', 'userId');
    }
}